<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
	
	<link href="/css/lib/myconfig.jquery.validate.css" rel="stylesheet" type="text/css"/>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script src="/js/lib/jquery.validate.min.js" type="text/javascript"></script>
	<script src="/js/unse/unse_form_check_solo.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
			$("#job_type").change(function() {
				var className = $(this).val();
				$("#job option").remove();
				$("#job_tmp option[class="+className+"]").each(function(index) {
					$(this).clone().appendTo($("#job"));
				});
			});
		});
	</script>

</head>
<body>
<!-- 운세 결과 로딩중 -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/unse/loading.php'; ?>
<!--// 운세 결과 로딩중 -->
<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
	
	<!--컨텐츠-->
	<div id="content">
     <!--휘장-->
		<div class="keybox1">
		</div>
     <!--//휘장-->
		<!--왼쪽컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->

			<!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme2.php'; ?>
			<!--//추천테마-->

			<!--회원가입-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/member_join.php'; ?>
			<!--//회원가입-->

			<!--고객센터-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/cs.php'; ?>
			<!--//고객센터_추가-->
		</div>
		<!--//왼쪽컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="scont02">
			<!--키비주얼/서비스이용안내-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/unse/key_notice.php'; ?>
			<!--//키비주얼/서비스이용안내-->

			<!--메인컨텐츠-->
			<div class="sscont">
				<!--중앙 왼쪽부분-->
				<div class="center_l">
					<!-- 사주정보 입력 폼 -->
					<div class="information">
						<h3><img src="/images/sub/common/sstit_infotit.png" alt="사주정보입력하기" /><em class="text">정확한 사주 정보를 입력하세요</em></h3>
						
						<form name="frm" id="frm" method="post" action="/unse/money/mymoney/result">
							<input type="hidden" name="cate1" id="cate1" value="<?=$category['sub']?>" />
							<input type="hidden" name="cate2" id="cate2" value="<?=$category['cont']?>" />
							<input type="hidden" name="free_yn" id="free_yn" value="<?=$free_yn?>" />
							<input type="hidden" name="login_yn" id="login_yn" value="<?=$sess_userinfo['login_yn']?>" />
							<input type="hidden" name="payment_type" id="payment_type" />
							<input type="hidden" name="ticket_idx" id="ticket_idx" />
							<fieldset>
								<legend>나의 사주정보</legend>
								<table width="100%" summary="" cellpadding="0" cellspacing="0">
									<colgroup>
										<col width="85" />
										<col width="*" />
									</colgroup>
									<tbody>
										<tr>
											<td colspan="3" class="title">
												<img src="/images/common/sstit_myinfo.png" alt="나의 사주정보" />
											</td>
										</tr>
										<tr>
											<th scope="row">
												<label for="user_name">이름</label>
											</th>
											<td>
												<input type="text" name="user_name" id="user_name" value="<?=$user['user_name'];?>" class="inpText" />
												<label class="error" for="user_name" generated="true"></label>
											</td>
										</tr>
										<tr>
											<th scope="row">
												<label for="user_sex">성별</label>
											</th>
											<td>
												<input type="radio" name="sex" id="sex_m" value="남" <?=$user['sex'] == 'M' ? "checked='checked'" : '';?> />
												<label for="sex_m">남자</label>
												<input type="radio" name="sex" id="sex_f" value="여" <?=$user['sex'] == 'F' ? "checked='checked'" : '';?> />
												<label for="sex_f">여자</label>
												<label class="error" for="sex" generated="true"></label>
											</td>
										</tr>
										<tr>
											<th scope="row">
												<label for="user_birth">생년월일시</label>
											</th>
											<td>
												<select name="birth_yyyy" id="birth_yyyy" title="출생년도를 선택하세요" class="input_select">
													<option value="">출생년도</option>
		<?	for ($year = 1960; $year <= 1987; $year++) : ?>
													<option value="<?=$year?>" <?=$user['birth_yyyy'] == $year ? 'selected="selected"' : '';?>><?=$year?></option>
		<?	endfor ?>
												</select>년
												<select name="birth_mm" id="birth_mm" title="출생월을 선택하세요" class="input_select">
													<option value="">출생월</option>
		<?	for ($month = 1; $month <= 12; $month++) : ?>
		<?		$str_month = str_pad($month, 2, '0', STR_PAD_LEFT); ?>
													<option value="<?=$str_month?>" <?=$user['birth_mm'] == $str_month ? 'selected="selected"' : '';?>><?=$month?></option>
		<?	endfor ?>
												</select>월
												<select name="birth_dd" id="birth_dd" title="출생일을 선택하세요" class="input_select bottom">
													<option value="">출생일</option>
		<?	for ($day = 1; $day <= 31; $day++) : ?>
		<?		$str_day = str_pad($day, 2, '0', STR_PAD_LEFT); ?>
													<option value="<?=$str_day?>" <?=$user['birth_dd'] == $str_day ? 'selected="selected"' : '';?>><?=$day?></option>
		<?	endfor ?>
												</select>일
												
												<select name="birth_hh" id="birth_hh" title="출생시간을 선택하세요" class="input_select">
													<option value="0" <?=$user['birthtime'] == '0' ? 'selected="selected"' : ''?>>모름</option>
													<option value="01" <?=$user['birthtime'] == '01' ? 'selected="selected"' : ''?>>子 (23:30 ~ 01:29)</option>
													<option value="02" <?=$user['birthtime'] == '02' ? 'selected="selected"' : ''?>>丑 (01:30 ~ 03:29)</option>
													<option value="04" <?=$user['birthtime'] == '04' ? 'selected="selected"' : ''?>>寅 (03:30 ~ 05:29)</option>
													<option value="06" <?=$user['birthtime'] == '06' ? 'selected="selected"' : ''?>>卯 (05:30 ~ 07:29)</option>
													<option value="08" <?=$user['birthtime'] == '08' ? 'selected="selected"' : ''?>>辰 (07:30 ~ 09:29)</option>
													<option value="10" <?=$user['birthtime'] == '10' ? 'selected="selected"' : ''?>>巳 (09:30 ~ 11:29)</option>
													<option value="12" <?=$user['birthtime'] == '12' ? 'selected="selected"' : ''?>>午 (11:30 ~ 13:29)</option>
													<option value="14" <?=$user['birthtime'] == '14' ? 'selected="selected"' : ''?>>未 (13:30 ~ 15:29)</option>
													<option value="16" <?=$user['birthtime'] == '16' ? 'selected="selected"' : ''?>>申 (15:30 ~ 17:29)</option>
													<option value="18" <?=$user['birthtime'] == '18' ? 'selected="selected"' : ''?>>酉 (17:30 ~ 19:29)</option>
													<option value="20" <?=$user['birthtime'] == '20' ? 'selected="selected"' : ''?>>戌 (19:30 ~ 21:29)</option>
													<option value="22" <?=$user['birthtime'] == '22' ? 'selected="selected"' : ''?>>亥 (21:30 ~ 23:29)</option>
												</select>시
												<label class="error" for="birth_yyyy" generated="true"></label>
												<label class="error" for="birth_mm" generated="true"></label>
												<label class="error" for="birth_dd" generated="true"></label>
										   	</td>
										</tr>
										<tr>
											<th scope="row">양력/음력</th>
											<td>
												<select name="birth_solunar" id="birth_solunar" title="음/양을 선택하세요" class="input_select"> 
													<option value="S_C" <?=$user['birth_solunar'] == 'S' && $user['cl_year'] == 'C' ? 'selected="selected"' : ''?>>양력</option>
													<option value="L_C" <?=$user['birth_solunar'] == 'L' && $user['cl_year'] == 'C' ? 'selected="selected"' : ''?>>음력(평달)</option>
													<option value="L_L" <?=$user['birth_solunar'] == 'L' && $user['cl_year'] == 'L' ? 'selected="selected"' : ''?>>음력(윤달)</option>
												</select>
											</td>
										</tr>
										<tr style="display:none;">
											<th scope="row" >당해연도</th>
											<td>
												<input type="hidden" name="target_yyyy" id="target_yyyy" readonly="readonly" value="<?=date("Y",time());?>"  class="input_select"/>
											</td>
										</tr>
										<tr>
											<th scope="row">
												<label for="job">직업</label>							
											</th>
											<td>
												<select name="job_type" id="job_type" title="직종을 선택하세요">
													<option value="">직종</option>
	<?
		$i = 0;
		$job_type = '';
		foreach ($job_list as $item) {
			if ($job_type != $item['job_type']) {
				$i++;
	?>
													<option value="job<?=$i?>"><?=$item['job_type']?></option>
	<?		
				$job_type = $item['job_type'];
			}
		}
	?>
												</select>
	
												<select name="job" id="job" title="직업을 선택하세요">
													<option value="">직종을 먼저 선택하세요</option>
												</select>
												<label class="error" for="job" generated="true"></label>
	
												<select id="job_tmp" style="display: none">
	<?
		$i = 0;
		$job_type = '';
		foreach ($job_list as $item) {
			if ($job_type != $item['job_type']) {
				$i++;
				$job_type = $item['job_type'];
			}
	?>
													<option class="job<?=$i?>" value="<?=$item['idx']?>"><?=$item['job']?></option>
	<?
		}
	?>
												</select>
											</td>
										</tr>
										<tr>
											<th scope="row">
												<label for="annual_salary">연봉</label>							
											</th>
											<td>
												<input type="text" name="annual_salary" id="annual_salary" class="inpText" /> 만원
												<label class="error" for="annual_salary" generated="true"></label>
											</td>
										</tr>
										<tr style="display:none;">
											<th scope="row">
												<label for="wedding_age">결혼예상<br />연령</label>							
											</th>
											<td>
												<select name="wedding_age" id="wedding_age" title="결혼예상연령을 선택하세요" disabled="true">
													<option value="25">25</option>
													<option value="30">30</option>
												</select>
											</td>
										</tr>
									</tbody>
								</table>
							</fieldset>	
							<div class="bt">
								<a href="javascript:;" onclick="window.open('/static/unse/<?=$category['sub']?>_<?=$category['cont']?>_prev_pop.php','','width=800,heigth=1000,scrollbars=yes')"><img src="/images/common/bt_prev.png" alt="미리보기" /></a>
								<input type="image" src="/images/common/bt_result.png" alt="결과보기" />
							</div><!--bt-->
						</form>
					</div><!--information--> 
					<!--// 사주정보 입력 폼 -->

					<!--운세후기게시판-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/slice/postscript_list_sub.php'; ?>
					<!--//운세후기게시판-->

					<!--함께보는 운세-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/together2.php'; ?>
					<!--//함께보는 운세-->
				</div>
				<!--//중앙 왼쪽부분-->

				<!--중앙 오른쪽부분-->
				<div class="center_r">
					<!--이벤트배너영역-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/event_banner.php'; ?>
					<!--//이벤트배너영역-->
							
					<!--실시간인기운세차트-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/unse_chart.php'; ?>
					<!--//실시간인기운세차트-->

					<!--오늘 태어난 스타의 운세-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/slice/star_todaybirth_list.php'; ?>
					<!--//오늘 태어난 스타의 운세-->

					<!--스몰배너-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/small_banner.php'; ?>
					<!--//스몰배너-->

					<!--사진으로 보는 스타운세-->	
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/slice/starpt_list.php'; ?>
					<!--//사진으로 보는 스타운세-->
				</div>
				<!--//중앙 오른쪽부분-->
			</div>
			<!--//메인컨텐츠-->
		   
		</div>
		<!--//컨텐츠-->

		<!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
	</div>
	<!--컨텐츠-->

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
<script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@gold"></script>
</body>
</html>